package com.xiumiing.net.base.net;


import com.xiumiing.net.Global;
import com.xiumiing.net.base.net.service.SchoolService;

/**
 * @author guguofeng
 * @desc 网络 接口
 * @date 2019/3/13
 * @Copyright: 武汉市追忆那年网络科技有限公司
 */
public class Api {

    /**
     * mRetrofitService : 通用
     * mAMapService : 地图
     * mLogcService : 日志
     */
//    private static RetrofitService mRetrofitService;
//    private static AMapService mAMapService;
//    private static RetrofitService mLogcService;
//    private static UserService mUserService;
    private static SchoolService mSchoolService;
//    private static ActivityService mActivityService;
//    private static EventService mEventService;


//    public static RetrofitService getInstance() {
//        if (null == mRetrofitService) {
//            mRetrofitService = RetrofitCreator.getRetrofit(Global.HOST_API).create(RetrofitService.class);
//        }
//        return mRetrofitService;
//    }
//
//    public static AMapService getAMapService() {
//        if (null == mAMapService) {
//            mAMapService = RetrofitCreator.getRetrofit(Global.HOST_AMAP).create(AMapService.class);
//        }
//        return mAMapService;
//    }
//
//    public static RetrofitService getLogcService() {
//        if (null == mLogcService) {
//            mLogcService = RetrofitCreator.getRetrofit(Global.HOST_LOGC).create(RetrofitService.class);
//        }
//        return mLogcService;
//    }
//
//    public static UserService getUserService() {
//        if (null == mUserService) {
//            mUserService = RetrofitCreator.getRetrofit(Global.HOST_API).create(UserService.class);
//        }
//        return mUserService;
//    }

    public static SchoolService getSchoolService() {
        if (null == mSchoolService) {
            mSchoolService = RetrofitCreator.getRetrofit(Global.HOST_AMAP).create(SchoolService.class);
        }
        return mSchoolService;
    }

//    public static ActivityService getActivityService() {
//        if (null == mActivityService) {
//            mActivityService = RetrofitCreator.getRetrofit(Global.HOST_API).create(ActivityService.class);
//        }
//        return mActivityService;
//    }
//    public static EventService getEventService() {
//        if (null == mEventService) {
//            mEventService = RetrofitCreator.getRetrofit(Global.HOST_API).create(EventService.class);
//        }
//        return mEventService;
//    }


}
